# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
# Contributor: Justin Berthault <justin.berthault@zaclys.net>
# Maintainer:
pkgname=py3-django-filter
pkgver=21.1
pkgrel=2
pkgdesc="Generic system for filtering Django QuerySets based on user selections"
url="https://github.com/carltongibson/django-filter"
arch="noarch"
license="BSD-3-Clause"
depends="py3-django"
makedepends="py3-setuptools"
checkdepends="py3-markdown py3-core-api py3-coverage py3-tz
	py3-django-crispy-forms py3-django-rest-framework py3-mock"
source="https://files.pythonhosted.org/packages/source/d/django-filter/django-filter-$pkgver.tar.gz"
builddir="$srcdir"/django-filter-$pkgver

build() {
	python3 setup.py --quiet build
}

check() {
	python3 runtests.py
}

package() {
	python3 setup.py install --skip-build --prefix=/usr --root="$pkgdir"
}


sha512sums="
df2b02bfa93874d9684a26394778203b827c6459ab8cc8c581677e6ccfeedf1323085f53fb52cfc3e0e0a3d27f86de655366bcd4be361502ce86e65b4a4e84d0  django-filter-21.1.tar.gz
"
